<?php
namespace Admin\Controller;
//招商合作控制器
class InvestmentController extends BaseController
{
    /**
     * 招商合作
     * @author 佛祖<381361943@qq.com>
     */
	public function index()
	{
		if(IS_GET)
		{
			$data = M('investment')->find(1);
			$this->assign('data',$data);
			$this->display();
		}
		else
		{
		    $data = I('post.');
			M('investment')->where(array('id'=>1))->save($data);
			$this->success('修改成功');
		}	
		
	}
}